﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Battleship
{
    public class Cor
    {
        public float x;
        public float y;
        public float z;
        public Cor()
        {
            x = 0;
            y = 0;
            z = 0;
        }
        public Cor(float ix, float iy, float iz)
        {
            x = ix;
            y = iy;
            z = iz;
        }
        public Cor(string ix, string iy, string iz)
        {
            x = float.Parse(ix);
            y = float.Parse(iy);
            z = float.Parse(iz);
        }
        public Cor(SlotPoint slotPoint)
        {
            x = slotPoint.bay - 4;
            y = slotPoint.row - 2;
            z = slotPoint.tier;
        }
        public Cor(string[] listString)
        {
            x = float.Parse(listString[0]);
            y = float.Parse(listString[1]);
            z = float.Parse(listString[2]);
        }
        public string getStr()
        {
            string result = "(" + this.x + " " + this.y + " " + this.z + ")";
            return result;
        }
    }
}
